<h1>Listing advices</h1>

<table>
  <tr>
  </tr>

<% for advice in @advices %>
  <tr>
    <td><%= link_to 'Show', advice %></td>
    <td><%= link_to 'Edit', edit_advice_path(advice) %></td>
    <td><%= link_to 'Destroy', advice, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New advice', new_advice_path %>
